﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Kevin.Controls
{
    internal class CodeNameItem
    {
        public CodeNameItem() {
            this.Code = "";
            this.Name = "";
        }

        public CodeNameItem(string code)
        {
            this.Code = code;
            this.Name = "";
        }

        public CodeNameItem(string code,string name) 
        {
            this.Code = code;
            this.Name = name;
        }
        

        public string Code { get; set; }
        public string Name { get; set; }
    }

    internal class CodeNameItemCollection : CollectionBase
    {
        public void Add(CodeNameItem item)
        {
            if (item != null)
                base.List.Add(item);
        }

        public CodeNameItem this[int index]
        {
            get { return (CodeNameItem)base.List[index]; }
            set { base.List[index] = value; }
        }
    }
}
